<?
$orders = $this->orders
?>

<div class="content-box">
    <div class="content-box-header">
        <h3>User's money transfers.</h3>
    </div>

    <div class="content-box-content">
        <div class="tab-content default-tab">
            <table>
                <thead>
                <tr>
                    <th>#</th>
                    <th>Money count</th>
                    <th>Date</th>
                    <th>Transaction</th>
                </tr>
                </thead>

                <tbody>
                <? foreach ($orders as $key => $order): ?>
                <tr>
                    <td><?= $key + 1 ?></td>
                    <td><?= $order['moneyCount'] ?></td>
                    <td><?= $order['time']->format('Y-m-d') ?></td>
                    <td><a href="/users/trans/id/<?= $order['transaction'] ?>"><?= $order['transaction'] ?></a></td>
                </tr>
                    <? endforeach;?>
                </tbody>
            </table>
        </div>
    </div>
</div>
